//
//  NewSingleButton.m
//  Shengzhuli
//
//  Created by FXGuo on 2018/1/17.
//  Copyright © 2018年 kamangkeji. All rights reserved.
//

#import "NewSingleButton.h"

@implementation NewSingleButton

- (void)layoutSubviews
{
    [super layoutSubviews];
    float imgW = 27;
    float titleW = 20;
    float margin = 3;
    
    self.imageView.frame = CGRectMake((self.width-imgW)/2.0, (self.height-imgW-titleW-margin)/2.0, imgW, imgW);
    self.titleLabel.frame = CGRectMake(0, CGRectGetMaxY(self.imageView.frame)+margin, self.width, 20);
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
}

@end
